#include<bits/stdc++.h>
using namespace std;
int n,a[200005],dp[200005][2];
int ans,t;
int main(){
freopen("color.in","r",stdin);
freopen("color.out","w",stdout);
cin>>n;
for(int i=n;i<=n;i++){
cin>>a[i];
}
cin>>t;
while(t--){
    cin>>n;
    ans=-1;
    for(int i=1;i<=n;i++){

    }
}
cout<<ans;
return 0;
}
